package cn.xd.core.design.chain;

import lombok.Getter;

/**
 * @author : mirzaLin
 * @data : 2023/11/19
 * @description : 责任链响应
 **/
@Getter
public class ChainResponse {
    private String name;
    private boolean stop;

    public ChainResponse setName(String name) {
        this.name = name;
        return this;
    }

    /**
     * 设置停止，不进行下一步操作
     */
    public void stop() {
        this.stop = true;
    }
}

